package org.example;

import java.util.ArrayList;

//放置Map和Reduce输出的容器
public class Context {
    ArrayList<KVPair> keep = new ArrayList<>();
    public void write(String key,String value){
        //将键和值进行存储
        keep.add(new KVPair(key,value));
    }

    public ArrayList read(){
        return keep;
    }

    public void Arr_clear(){
        keep.clear();
    }

}
